<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录界面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
        }

        .login-container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 300px;
            text-align: center;
        }

        .login-container h2 {
            margin-bottom: 20px;
        }

        .login-container input {
            width: 90%;
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        .login-container button {
            width: 100%;
            padding: 10px;
            background-color: #232c24;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }

        .login-container button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h2>登录</h2>
        <input type="text" id="username" name="username" placeholder="用户名">
        <input type="password" id="password" name="password" placeholder="密码">
        <button type="button" onclick="login()">登录</button>
    </div>

    <script>
        function login() {
            // 这里你可以添加登录逻辑，比如发送请求到服务器进行验证
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            console.log('用户名:', username);
            console.log('密码:', password);
            // 示例：简单的弹窗提示（实际应用中应替换为适当的验证逻辑）
            alert('登录功能尚未实现，仅展示界面效果。');
        }
    </script>
</body>
</html>
